/*
 * A JSR-168 portlet application for previewing unread
 * email messages.
 *
 * Copyright (C) 2007  San Joaquin Delta College
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation version 2
 * of the License.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
 * 02110-1301, USA.
 *
 */
package edu.deltacollege.portal.portlets.emailpreview;

import java.util.Date;

/**
 * An entity abstraction for representing information
 * related to an email message.
 *
 * @author Andreas Christoforides
 *
 */
public class EmailMessage {

	private String sender;
	private String subject;
	private Date sentDate;

	/**
	 * Returns the date the email message was sent.
	 * @return The sent date of the email message as a <code>java.util.Date</code>.
	 */
	public Date getSentDate() {
		return this.sentDate;
	}

	/**
	 * Sets the date the email message was sent.
	 *
	 * @param sentDate The sent date of the email message.
	 */
	public void setSentDate(Date sentDate) {
		this.sentDate = sentDate;
	}

	/**
	 * Returns the sender of this email message.
	 *
	 * @return The sender of the email message.
	 */
	public String getSender() {
		return this.sender;
	}

	/**
	 * Sets the sender of this email message.
	 *
	 * @param sender The email message sender.
	 */
	public void setSender(String sender) {
		this.sender = sender;
	}

	/**
	 * Returns the email message subject.
	 *
	 * @return The email message subject.
	 */
	public String getSubject() {
		return this.subject;
	}

	/**
	 * Sets the email message subject.
	 *
	 * @param subject The subject of the email message.
	 */
	public void setSubject(String subject) {
		this.subject = subject;
	}
}
